package com.yyang.pai.mvp.ui.adapter;

import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView;
import android.view.View;

import com.jess.arms.base.BaseHolder;
import com.jess.arms.base.DefaultAdapter;
import com.yyang.pai.R;
import com.yyang.pai.mvp.ui.holder.ItemHolder;

import java.util.List;

/**
 * @author yyang
 * @date 2019/3/18
 */
public class ItemAdapter extends DefaultAdapter {
    public ItemAdapter(List infos) {
        super(infos);
    }

    @Override
    public BaseHolder getHolder(View v, int viewType) {
        return new ItemHolder(v);
    }

    @Override
    public int getLayoutId(int viewType) {
        return R.layout.recycle_list;
    }

}
